<?php $this->headScript()->appendFile($this->JS_PATH . "energyclass.js"); ?>
<div id="energyclass-listing"></div>

<div class="clearfix"></div>
<div class="content">
    <div class="page-title"> <i class="icon-custom-right"></i>
        <h3><span class="semi-bold">Energy Class List</span></h3>
    </div>
    <?php echo $this->flashmessages(); ?>
    <div class="row">
        <div class="col-md-12">
            <div class="grid simple transparent" style="background-color:white;">

                <div class="grid-body">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="grid simple ">

                                <div class="grid-body no-border dataTables_wrapper form-inline">
                                    <h3>Energy Class <span class="semi-bold">Listing</span></h3>

                                    <table class="table no-more-tables">
                                        <thead>
                                            <tr>
                                                <td colspan="2" align="right">
                                                <a class="btn btn-success btn-cons"
                                        href="<?php echo $this->url(array('module' => 'default', 'controller' => 'energyclass', 'action' => 'form'), null, TRUE); ?>"
                                        >+ Add Energy Class</a>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th class="col-md-3">
                                                    <a href="<?php echo $this->url(array("controller" => "energyclass", "action" => "list", "field" => "energy_cls_name", "sort" => "asc"), "default", false); ?>">
                                                        <img src="<?php echo $this->IMAGE_PATH; ?>datatables/sort_asc.png"  alt="Ascending" title="Ascending" class="sort_asc" />
                                                    </a>
                                                    Name
                                                    <a href="<?php echo $this->url(array("controller" => "energyclass", "action" => "list", "field" => "energy_cls_name", "sort" => "desc"), "default", false); ?>">
                                                        <img src="<?php echo $this->IMAGE_PATH; ?>datatables/sort_desc.png"  alt="Descending" title="Descending" class="sort_desc"  />
                                                    </a>

                                                </th>
                                                <th class="col-md-3">
                                                    <span class="cls_action"> Action</span>
                                                </th></tr>
                                        </thead>
                                        <tbody>
                                            <?php if (count($this->energyclasssData) > 0): ?>
                                                <?php $counter = 0; ?>
                                                <?php foreach ($this->energyclasssData as $key => $value) : ?>
                                                    <!-- row -->
                                                    <tr <?php if ($counter == 0): ?>class="first"<?php endif; ?>>
                                                    </td> <td> 
                                                     <a href="<?php echo $this->url(array("module" => "default","controller" => "energyclass", "action" => "form", "energy_cls_id" => $value["energy_cls_id"]), null, true); ?>">
                                                        <?php echo $value["energy_cls_name"]; ?>
                                                    </a>

                                                </td>
                                               
                                                <td>
                                                    <a class="label label-success clickable" href="<?php echo $this->url(array('controller' => 'energyclass', 'action' => 'form', 'energy_cls_id' => $value["energy_cls_id"]), null, true); ?>">
                                                        Edit
                                                    </a>&nbsp;

                                                    <a class="label label-important clickable" href="<?php echo $this->url(array('controller' => 'energyclass', 'action' => 'delete', 'energy_cls_id' => $value["energy_cls_id"]), null, true); ?>">
                                                        Delete
                                                    </a>
                                                </td>

                                            </tr>
                                            <?php $counter++; ?>
                                        <?php endforeach; ?>
                                    <?php else: ?>
                                        <tr class="row2" >
                                            <td>&nbsp;</td>
                                            <td colspan="8"> No Record Found</td>
                                        </tr>
                                    <?php endif; ?>
                                </tbody>

                            </table>

                            <div class="row">
                                <div class="col-md-12">
                                    <div class="dataTables_paginate paging_bootstrap pagination">
                                        <?php echo $this->paginator->displayPages(); ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
</div>
</div>
<!-- END PAGE -->


